package com.icangya.Value;

import com.alibaba.fastjson.JSONObject;

import java.math.BigDecimal;
import java.security.PublicKey;
import java.util.ArrayList;
import java.util.List;

/**
 * Created by cangya4 on 2017/4/25.
 */
public class StaticValue {

    //消费类型
    public static final String FootBall="footBall";//踢球
    public static final String Advert="Advertise";//发布广告

    //佣金类型
    public static final String AdvertClick="advertClick";//点击广告获得佣金
    public static final String AGENCYCOMM="agencyComm";//代理返现获得佣金


    public static  String uploadImgUrl="";
    public static String ERROR_URI = "http://www.baidu.com";
    public static boolean NEED__CLOSE_LOTTERY_THREAD = true;
    //获取开奖信息配置-重庆时时彩
    public static Integer SCAN_INTERVAL200 = 9 * 1000;
    public static boolean NEED_UPDATA_BALL200 = true;
    public static boolean RUN200 = false;
    //获取开奖信息配置-北京赛车
    public static Integer SCAN_INTERVAL006 = 9 * 1000;
    public static boolean NEED_UPDATA_BALL006 = true;
    public static boolean RUN006 = false;
    //获取开奖信息配置-六合彩
    public static Integer SCAN_INTERVAL024 = 9 * 1000;
    public static boolean NEED_UPDATA_BALL024 = true;
    public static boolean RUN024 = false;

    //获取开奖信息配置-QQ在线
    public static Integer SCAN_INTERVAL001 = 1000;
    public static boolean NEED_UPDATA_BALL001 = true;
    public static boolean RUN001 = true;

    //进行排行榜操作配置
    public static int SCAN_TIME = 60 * 1000;//1分钟执行一次
    public static boolean RANKING = true;

    public static final int[] LHC_COLOR = {-1, 0, 0, 1, 1, 2, 2, 0, 0, 1, 1,
            2, 0, 0, 1, 1, 2, 2, 0, 0, 1,
            2, 2, 0, 0, 1, 1, 2, 2, 0, 0,
            1, 2, 2, 0, 0, 1, 1, 2, 2, 0,
            1, 1, 2, 2, 0, 0, 1, 1, 2};

    public static int[] qqonline_tj = {10,10,10,10,10,10,10,10,10};//统计球的出现间隔

    //余额操作类型
    public static final JSONObject MONEY_LOG_INFO = JSONObject.parseObject("{\"0001\":\"充值\",\"0002\":\"提现\"," +
            "\"0003\":\"奖励\",\"2001\":\"购买重庆时时彩\",\"2002\":\"重庆时时彩奖励\",\"0061\":\"购买北京赛车\",\"0062\":\"北京赛车奖励\"," +
            "\"0241\":\"购买六合彩\",\"0242\":\"六合彩奖励\",\"0011\":\"购买QQ在线\",\"0012\":\"QQ在线奖励\"}");
    public static boolean IS_STARTING = false;//获取服务启动状态
    //下注中奖情况
    public final static String BET_INFO_WAIT = "0";//等待开奖
    public final static String BET_INFO_WIN = "1";//中奖
    public final static String BET_INFO_LOSE = "2";//未中奖
    public final static String BET_INFO_NWNL = "3";//没输没赢
    //
    public static final String GAME_USER_SESSION = "SHISHICAI_GAME_USER_SESSION";
    public static final String ADMIN_USER_SESSION = "SHISHICAI_ADMIN_USER_SESSION";
    public static final String ADMIN_PROXY_SESSION = "SHISHICAI_ADMIN_PROXY_SESSION";
    /*采集器线程*/
    public static List<Thread> threadList = new ArrayList<Thread>();

    //六合彩测试期号(假的)
    public static String test_issue_024 = "0";

    public static final int PHONE_PAGE_ROW = 10;
    public static final int SYSTEM_PAGE_ROW = 20;

    public static final String SIGN_KEY = "Uh6eDKDwe6AMweYl"; //请求签名key


    //admin系统管理员注册账号时所需要的参数key
    public static final String REGISTER_KEY = "SDO40V444F0VV94jv343FLFLA";

    //注册代理账号时所需要的参数key
    public static final String PROXY_KEY = "PROXYKEY";

    public static final byte BALANCE = 0;//余额
    public static final byte COMMISSION = 1;//佣金

    public static final boolean DEBUG = true;


    /**
     * 微信的一些值
     */
    public class WX {
        public final static String BASE_URL = "http://www.xiaoxiaokm.com";
        public final static String CENTER_URL = "http://www.xiaoxiaokm.com/CenterServerController/RedirectGameUrl?";
        public final static String ENTER_URL = "http://www.xiaoxiaokm.com/CenterServerController/erweimaLogin1?";

//        public final static String BASE_URL = "http://www.mnuocom.com";
//        public final static String CENTER_URL = "http://www.mnuocom.com/CenterServerController/RedirectGameUrl?";
//        public final static String ENTER_URL = "http://www.mnuocom.com/CenterServerController/erweimaLogin1?";

        public final static String GAME_URL = "http://www.mnuocom.com/wechat/testloginCallBack?";
        public final static String REAL_GAME_URL = "http://www.mnuocom.com/foot/user/loginGame?";
        public final static String START_GAME_URL = "index.html";
        public final static String NO_USER_INFO_SCOPE = "snsapi_base";
        public final static String HAVE_USER_INFO_SCOPE = "snsapi_userinfo";

        //苍牙科技REAL_
        //	public final static String AppId = "wx2aeec881f90e2a74";
        //	public final static String AppSecret = "43dc0f2a22a379d3914d87c0769b8ace";
        //	public final static String mchId = "1346826801";
        //	public final static String key = "linshengxinshangrenxinxikeji123A";

        //天马网络公众号信息
//        public final static String AppId = "wx10403e5294bd43d7";
//        public final static String AppSecret = "dc0ab8254b117c93c54fc225c03dc850";
        //出账信息
        public final static String MH_ID = "1428033702";
        public final  static String APP_KEY = "r23498u83uc8349u8r5324v0nucc53vb";

        //测试服务器--台江县欧世华联生活超市公众号信息
        public final static String AppId = "wxfcc9d399fd76d4e1";
        public final static String AppSecret = "25b1ca78608dcde41ab2604f865b2f48";
        //出账信息
//        public final static String MH_ID = "1287930101";
//        public final  static String APP_KEY = "oiiwetoierglkasdflkjasdgkjewrigs";

        // 填写你的key

        public final static String ShareUrl = "https://open.weixin.qq" +
                ".com/connect/oauth2/authorize?appid=APPID&redirect_uri=REDIRECT_URI&response_type=code&scope=SCOPE" +
                "&state=STATE#wechat_redirect";

        public final static String ShareUrlTest = "https://open.weixin.qq" +
                ".com/connect/oauth2/authorize?appid=APPID&redirect_uri=REDIRECT_URI&response_type=code&scope=SCOPE" +
                "&state=STATE#wechat_redirect";


        public final static String getTokenUrl = "https://api.weixin.qq" +
                ".com/cgi-bin/token?grant_type=client_credential&appid=APPID&secret=APPSECRET";
        public final static String getJsapiTicket = "https://api.weixin.qq.com/cgi-bin/ticket/getticket?access_token=ACCESS_TOKEN&type=jsapi";
        public final static String getCodeUrl = "https://open.weixin.qq" +
                ".com/connect/oauth2/authorize?appid=APPID&redirect_uri=REDIRECT_URI&response_type=code&scope=SCOPE" +
                "&state=STATE#wechat_redirect";
        public final static String getOAuthAccessToken = "https://api.weixin.qq" +
                ".com/sns/oauth2/access_token?appid=APPID&secret=SECRET&code=CODE&grant_type=authorization_code";
        public final static String getreferAccessUrl = "https://api.weixin.qq" +
                ".com/sns/oauth2/refresh_token?appid=APPID&grant_type=refresh_token&refresh_token=REFRESH_TOKEN";
        public final static String getOAuthUserNews = "https://api.weixin.qq" +
                ".com/sns/userinfo?access_token=ACCESS_TOKEN&openid=OPENID&lang=zh_CN";
        public final static String isOAuthAccessToken = "https://api.weixin.qq" +
                ".com/sns/auth?access_token=ACCESS_TOKEN&openid=OPENID";
        public final static String getMedie = "https://api.weixin.qq.com/cgi-bin/media/get?access_token=ACCESS_TOKEN&media_id=MEDIA_ID";

        /**
         * 统一下单
         */
        public final static String payNoticeUrl = "https://api.mch.weixin.qq.com/pay/unifiedorder";
        /**
         * 红包付款接口
         */
        public final static String payWithdrawUrl = "https://api.mch.weixin.qq" +
                ".com/mmpaymkttransfers/promotion/transfers";

        /**
         * 佣金百分比
         */
        public final static double PERCENT_VALUE = 100.00;
    }

}
